//
//  HYCPudCell.m
//  FamilyTravel
//
//  Created by dllo on 15/10/30.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "HYCPudCell.h"
#define WIDTH self.contentView.frame.size.width
#define HEIFGT self.contentView.frame.size.height
@implementation HYCPudCell
- (void)dealloc {
    [_imageView release];
    [_label release];
    
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        
        self.imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, WIDTH, HEIFGT / 1.077)];
        [self addSubview:self.imageView];
        [_imageView release];
        self.imageView.backgroundColor = [UIColor grayColor];
        
        self.label = [[UILabel alloc] initWithFrame:CGRectMake(WIDTH / 3, HEIFGT / 3.1, WIDTH / (WIDTH / 40), HEIFGT / (HEIFGT / 20))];
        [self addSubview:self.label];
        self.label.textAlignment = NSTextAlignmentCenter;
        self.label.font = [UIFont systemFontOfSize:20];
        [_label release];
    }
    return self;
}



@end
